package com.rainszj.pojo.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Options;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户类
 *
 * @author rainszj
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private Long id;
    private String username;
    private String password;
    private String nickname;
    private String email;
    private String avatar;
    /**
     * 用户的类型
     */
    private String type;

    private Date createTime;
    private Date updateTime;

    /**
     * 一对多
     */
    private List<Blog> blogs = new ArrayList<Blog>();
}
